package com.example.commons.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: authority-v3.0.7
 * @ClassName:Equip
 * @description: 装备列表 实体类
 * @author:dyy
 * @Version 3.0
 **/

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_equip")
@Schema(title = "Equip对象", description = "装备列表")
public class Equip implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(title = "序列号")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("序列号")
    private Long id;

    @Schema(title = "装备名称")
    @TableField("name")
    @ExcelProperty("装备名称")
    private String name;

    @Schema(title = "装备图片")
    @TableField("img")
    @ExcelProperty("装备图片")
    private String img;

    @Schema(title = "攻击力")
    @TableField("aggressivity")
    @ExcelProperty("攻击力")
    private Integer aggressivity;

    @Schema(title = "暴击率")
    @TableField("critical")
    @ExcelProperty("暴击率")
    private Integer critical;

    @Schema(title = "防御")
    @TableField("defense")
    @ExcelProperty("防御")
    private Integer defense;

    @Schema(title = "法力上限")
    @TableField("mana")
    @ExcelProperty("法力上限")
    private Integer mana;

    @Schema(title = "火焚耐性")
    @TableField("fire")
    @ExcelProperty("火焚耐性")
    private Integer fire;

    @Schema(title = "寒冻耐性")
    @TableField("ice")
    @ExcelProperty("寒冻耐性")
    private Integer ice;

    @Schema(title = "毒伤耐性")
    @TableField("drug")
    @ExcelProperty("毒伤耐性")
    private Integer drug;

    @Schema(title = "雷蛰耐性")
    @TableField("thunder")
    @ExcelProperty("雷蛰耐性")
    private Integer thunder;

    @Schema(title = "所属类型")
    @TableField("belong")
    @ExcelProperty("所属类型")
    private Integer belong;

    @Schema(title = "所属套装")
    @TableField("belong_suit")
    @ExcelProperty("所属套装")
    private Long belongSuit;
}
